package table_Mixage;


import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

/**
 *  Player Fenetre
 *
 *	Description : Classe qui génère la fenetre principale.
 *	
 *	Contenu :
 *		-JFrame principale
 *		-JScrollPane
 *		-JPanel principal
 *
 * @author Damien Deldon</a>
 * @version 1.0
 */

public class PlayerFenetre extends JFrame {

	private static final long serialVersionUID = 3005511871584060756L;
	
	static BarreMenu menu = new BarreMenu(null);
	
	//Panel Principal (contient toute les pistes)
	static JPanel panel = new JPanel();
	
	//Décommenter pour changer icone jframe
	//Image icon = Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icon.jpg"));

	
	public PlayerFenetre(){
		super();	
		build();
	}
	
	private void build(){
		setTitle("Mixeur RIE 07");
	    setJMenuBar(menu);
		setSize(1000,400);
		setLocationRelativeTo(null);
		setResizable(true);
	    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    setContentPane(buildContentPane());
	    //setIconImage(icon);
	}
	
	private JScrollPane buildContentPane(){
		GridLayout layoutPanel = new GridLayout(0,1);
		layoutPanel.setVgap(15);
		panel.setLayout(layoutPanel);
		JScrollPane scrollBar=new JScrollPane(panel);
		return scrollBar;
	}		
}		
